home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / tip / Makefile < prev    next >
Encoding:
Makefile  |  1989-05-16  |  3.4 KB  |  111 lines

  1. #
  2. # Copyright (c) 1988 The Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    5.6 (Berkeley) 9/28/88
  18. #
  19. # make file for intermachine communications package
  20. #
  21. # Files are:
  22. #    /etc/remote        remote host description file
  23. #    /etc/phones        phone number file, owned by ${OWNER} and
  24. #                  mode 6??
  25. #    ${ADM}/aculog        ACU accounting file, owned by ${OWNER} and
  26. #                  mode 6?? {if ACULOG defined}
  27. # Presently supports:
  28. #    BIZCOMP
  29. #    DEC DF02-AC, DF03-AC
  30. #    DEC DN-11/Able Quadracall
  31. #    HAYES and Hayes emulators
  32. #    USR COURIER (2400 baud)
  33. #    VENTEL 212+
  34. #    VADIC 831 RS232 adaptor
  35. #    VADIC 3451
  36. #    Hayes Smartmodem 2400
  37. #    Telebit Trailblazer
  38. # (drivers are located in libacu.a)
  39. #
  40. # Configuration defines:
  41. #    DF02, DF03, DN11    ACU's supported
  42. #      BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
  43. #      SM2400, TELEBIT
  44. #    ACULOG            turn on tip logging of ACU use
  45. #    PRISTINE        no phone #'s put in ACU log file
  46. #    CONNECT            worthless command
  47. #    DEFBR            default baud rate to make connection at
  48. #    DEFFS            default frame size for FTP buffering of
  49. #                writes on local side
  50. #    BUFSIZ            buffer sizing from stdio, must be fed
  51. #                explicitly to remcap.c if not 1024
  52. #    STREAMS            system has streams tty interface (SunOS 4.0)
  53. ADM=    usr/adm
  54. CONFIG=    -DSM2400 -DTELEBIT
  55. CFLAGS=    -O -DDEFBR=19200 -DDEFFS=BUFSIZ -DACULOG -DCONNECT -DSTREAMS
  56. LIBC=    /lib/libc.a
  57. SRCS=    acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c login.c partab.c \
  58.     remcap.c remote.c tip.c tipout.c uucplock.c value.c vars.c \
  59.     page.c slip.c
  60. OBJS=    acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o login.o partab.o \
  61.     remcap.o remote.o tip.o tipout.o uucplock.o value.o vars.o \
  62.     page.o slip.o
  63. MAN=    tip.1
  64.  
  65. all: libacu/libacu.a tip
  66.  
  67. tip: ${OBJS} ${LIBC}
  68.     ${CC} -o $@ ${OBJS} libacu/libacu.a
  69.  
  70. # acutab is configuration dependent, and so depends on the makefile
  71. acutab.o: Makefile
  72. acutab.o: acutab.c
  73.     ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
  74.  
  75. # remote.o depends on the makefile because of DEFBR and DEFFS
  76. # log.o depends on the makefile because of ACULOG
  77. log.o remote.o: Makefile
  78.  
  79. libacu/libacu.a: FRC
  80.     cd libacu; make ${MFLAGS}
  81.  
  82. clean:
  83.     rm -f ${OBJS} core tip
  84.     cd libacu; make ${MFLAGS} clean
  85.  
  86. cleandir: clean
  87.     rm -f ${MAN} tags .depend
  88.     cd libacu; make ${MFLAGS} cleandir
  89.  
  90. depend:
  91.     mkdep ${CFLAGS} ${SRCS}
  92.     cd libacu; make ${MFLAGS} depend
  93.  
  94. install: ${MAN}
  95.     cd libacu; make ${MFLAGS} install
  96.     install -s -o root -g daemon -m 6711 tip ${DESTDIR}/usr/bin/tip
  97.     rm -f ${DESTDIR}/usr/bin/cu
  98.     ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
  99.     install -c -o bin -g bin -m 444 tip.1 ${DESTDIR}/usr/man/man1
  100.     rm -f ${DESTDIR}/usr/man/man1/cu.1
  101.     ln ${DESTDIR}/usr/man/tip1/tip.1 ${DESTDIR}/usr/man/cat1/cu.1
  102.  
  103. lint: ${SRCS}
  104.     lint ${CFLAGS} ${SRCS}
  105.  
  106. tags: ${SRCS}
  107.     ctags ${SRCS}
  108.     cd libacu; make ${MFLAGS} tags
  109.  
  110. FRC:
  111.